<include file="public@header" />
</head>
<body>
	<div class="wrap js-check-wrap">
		<ul class="nav nav-tabs">
			<li class="active"><a href="#">服务员接单统计</a></li>
		</ul>
        <form class="well form-inline margin-top-20" method="get" action="{:url('User/yggdlist')}">
			门店名称:
			<input type="text" class="form-control" name="md_name" style="width: 200px;" value="{:input('request.md_name/s','')}"
				placeholder="请输入门店名称">
            用户名:
            <input type="text" class="form-control" name="user_login" style="width: 150px;" value="{:input('request.user_login/s','')}" placeholder="请输入{:lang('USERNAME')}">
            
            <input type="submit" class="btn btn-primary" value="搜索" />
        </form>
		<table class="table table-hover table-bordered">
			<thead>
				<tr>
					<th width="80">序号</th>
					<th>{:lang('USERNAME')}</th>
					<th>姓名</th>
					<th>联系方式</th>
					<th>{:lang('LAST_LOGIN_TIME')}</th>
					
					<th>{:lang('STATUS')}</th>
					<th width="180">订单数量</th>
					<th width="140">{:lang('ACTIONS')}</th>
				</tr>
			</thead>
			<tbody>
				<php>$user_statuses=array("0"=>lang('USER_STATUS_BLOCKED'),"1"=>lang('USER_STATUS_ACTIVATED'),"2"=>lang('USER_STATUS_UNVERIFIED'));</php>
				<foreach name="users" item="vo">
				<tr>
					<td>{$xhpage + $key}</td>
					<td><if condition="$vo['user_url']"><a href="{$vo.user_url}" target="_blank" title="{$vo.signature}">{$vo.user_login}</a><else />{$vo.user_login}</if></td>
					<td>{$vo.user_nickname}</td>
					<td>{$vo.user_tel}</td>
					<td>
						<if condition="$vo['last_login_time'] eq 0">
							{:lang('USER_HAVE_NOT_LOGIN')}
						<else />
							{:date('Y-m-d H:i:s',$vo['last_login_time'])}
						</if>
					</td>
					
					<td>
						<switch name="vo.user_status">
							<case value="0">
								<span class="label label-danger">{$user_statuses[$vo['user_status']]}</span>
							</case>
							<case value="1">
								<span class="label label-success">{$user_statuses[$vo['user_status']]}</span>
							</case>
							<case value="2">
								<span class="label label-warning">{$user_statuses[$vo['user_status']]}</span>
							</case>
						</switch>
					</td>
					<td>{$vo.ddnum|default=''}</td>
					<td>
						
						<a class="btn btn-xs btn-primary" href="{:url('../portal/admin_order/mdorderlist',array('fwyid'=>$vo['id']))}">订单详情</a>
							
						</if>
					</td>
				</tr>
				</foreach>
			</tbody>
		</table>
		<div class="pagination">{$page}</div>
	</div>
	<script src="__STATIC__/js/admin.js"></script>
</body>
</html>